import request from '@/utils/request'

// 查询商品列表
export function listProject(query) {
    return request({
        url: '/system/project/list',
        method: 'get',
        params: query
    })
}

// 查询商品详细
export function getProject(proId) {
    return request({
        url: '/system/project/' + proId,
        method: 'get'
    })
}

// 新增商品
export function addProject(data) {
    return request({
        url: '/system/project',
        method: 'post',
        data: data
    })
}

// 修改商品
export function updateProject(data) {
    return request({
        url: '/system/project',
        method: 'put',
        data: data
    })
}

// 删除商品
export function delProject(proId) {
    return request({
        url: '/system/project/' + proId,
        method: 'delete'
    })
}
